﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Questionnaire.Models
{
    /// <summary>
    /// 答题
    /// </summary>
    [Table("tb_answer")]
    public class Answer
    {
        /// <summary>
        /// 标识
        /// </summary>
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }
        /// <summary>
        /// 答题者标识
        /// </summary>
        [Display(Name = "答题者标识")]
        public long ReplierId { get; set; }
        /// <summary>
        /// 问题标识
        /// </summary>
        [Display(Name = "问题标识")]
        public long QuestionId { get; set; }
        /// <summary>
        /// 选项标识
        /// </summary>
        [Display(Name = "选项标识")]
        public long SelectionId { get; set; }
    }
}
